<template>
	<view class="">
		<img :src="data.image" alt="" class="img" mode="widthFix">
		<view class="info">
			<view class="">
				照片大小:{{data.size || ''}}
			</view>
			<view class="">
				照片尺寸:{{data.resolution || ''}}
			</view>
			<view class="">
				所属用户:{{data.user || ''}}
			</view>
			<view class="">
				上传日期:{{data.createtime || ''}}
			</view>
		</view>
	</view>
	
</template>

<script>
	import http from '@/pages/request/index'
	export default {
		data() {
			return {
				data:{}
			};
		},
		onLoad(option) {
			this.getDetail(option.id)
		},
		methods: {
			getDetail(id){
				http('album.photoInfo',{id}).then(res=>{
					console.log(res);
					this.data = res.data
				})
			},
		}
	};
</script>

<style scoped lang="scss">
	.img {
		width: 100vw;
	}
	.info {
		padding: 20rpx 24rpx;
		font-size: 28rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #333333;
		line-height: 52rpx;
	}
</style>